import React, {useState, useEffect} from "react";
import {Spin} from "antd";
import Query from "./query";
import Content from "./content";
import RadarStore from './RadarStore'
import {observer} from "mobx-react";

const List: React.FC = () => {

  useEffect(() => {
    RadarStore.queryRadarList()
  })

  return (
    <div className="radarManageContainer">
      <Query/>
      <Spin spinning={RadarStore.loading}>
        <Content/>
      </Spin>
    </div>
  )
}

export default (List)
